package com.suxin.ratelimit.repository.springdata;

import com.suxin.ratelimit.Rate;
import org.springframework.data.repository.Repository;

/**
 * @author Tang
 * @classname IRateLimiter
 * @description [  ]
 * @date 2021/7/15 14:10
 */
public interface IRateLimiter extends Repository<Integer, Rate> {

    Rate findByKey(String key);

    void saveRate(Rate rate);

}
